package com.youlai.boot.system.model.vo;


import com.mybatisflex.annotation.RelationOneToMany;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.util.List;


/**
 * 字典项项分页VO
 *
 * @author Ray
 * @since 0.0.1
 */
@Schema(description = "字典项分页对象")
@Getter
@Setter
public class DictVO {

    @Schema(description = "字典名称")
    private String name;

    @Schema(description = "字典编码")
    private String dictCode;

    @Schema(description = "字典项集合")
    @RelationOneToMany(selfField = "dictCode", targetField = "dictCode", targetTable = "sys_dict_data")
    private List<DictDataVO> dictDataList;

}
